# celeryconfig.py
from celery.schedules import crontab
from datetime import timedelta

beat_schedule = {
    'run-every-minute': {
        'task': 'app.timed_task',
        'schedule': crontab(minute='*/1'),  # 每 1 分钟执行一次
    },
    'run-every-30-seconds': {
            'task': 'app.timed_task',
            'schedule': timedelta(seconds=20),
        },
}


timezone = 'Asia/Shanghai'
